﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.domain
{
    public class BulletinMap : ClassMap<Bulletin>
    {
        public BulletinMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);

            Map(o => o.Title);
            Map(o => o.Summary);
            //Map(o => o.Description);
            Map(o => o.Content).CustomType("StringClob").CustomSqlType("nvarchar(max)");
            Map(o => o.ImagePath);
            Map(o=>o.Type);
        }
    }
}
